﻿namespace Pub.Class
{
    using System;
    using System.Collections.Generic;

    public class UrlParameterCompre : IComparer<UrlParameter>
    {
        public int Compare(UrlParameter x, UrlParameter y)
        {
            if (x.ParameterName == y.ParameterName)
            {
                return string.Compare(x.ParameterValue, y.ParameterValue);
            }
            return string.Compare(x.ParameterName, y.ParameterName);
        }
    }
}

